{template "header.html"}
<!-- index start -->
<link rel="stylesheet" href="{HOME_THEME_PATH}mobile/css/contact.css">
<script type="text/javascript">
function page_onload(){
    $('.submit_btn').click(function(){
        feedback();
    });
}
function feedback(){
    var name = $(".input_name").val();
    var mobile = $(".input_phonenum").val();
    var email = $(".input_email").val();
    var remark = $(".input_content").val();
    if(name==''){
        alert('请填写姓名')
        return false;
    }
    if(mobile==''){
        alert('请填写电话')
        return false;
    }
    if(email==''){
        alert('请填写Email')
        return false;
    }
    $.ajax({
        type: 'post',
        dataType: "json",
        url: "/index.php?c=form&mid=liuyan",
        data: { 
            'data[title]' : name ,
            'data[phonenum]' : mobile ,
            'data[email]' : email ,
            'data[content]' : remark 
        },
        success: function (data) {
            if(data){
                alert(data.code);
                if (data.code.indexOf("成功") > -1){
                    location.reload()
                }
            }
        },
        crossDomain: false
    })
}
</script>
<div class='contact_box'>
    <div class='contact_info'>
        <div class="contact_info_li">
            <span>地址</span>
            <p>上海市浦东新区东三里桥路1018号上海数字产业园B座204</p>
            <div class='clear'></div>
        </div>
        <div class="contact_info_li">
            <span>电话</span>
            <p>4000215098</p>
            <div class='clear'></div>
        </div>
        <div class="contact_info_li">
            <span>网址</span>
            <p>www.shanyou666.com</p>
            <div class='clear'></div>
        </div>
        <div class="contact_info_li">
            <span>邮编</span>
            <p>200125</p>
            <div class='clear'></div>
        </div>
        <div class="contact_info_li no_border">
            <span>Email</span>
            <p>shanyouwangluo2015@163.com</p>
            <div class='clear'></div>
        </div>
    </div>
    <div class='contact_input'>
        <div class="contact_input_li">
            <span>姓名</span>
            <input class='input_name' type="text" placeholder="请输入您的姓名" value="" />
            <div class='clear'></div>
        </div>
        <div class="contact_input_li">
            <span>电话</span>
            <input class='input_phonenum' type="text" placeholder="请输入您的电话" value="" />
            <div class='clear'></div>
        </div>
        <div class="contact_input_li no_border">
            <span>Email</span>
            <input class='input_email' type="text" placeholder="请输入您的Email" value="" />
            <div class='clear'></div>
        </div>
    </div>
    <a>以上3项必填才可提交</a>
    <div class='contact_textarea'>
        <div class="contact_textarea_li">
            <span>备注</span>
            <textarea class='input_content' type="text" placeholder="请输入您要提交的信息" value=""></textarea>
            <a>选填200字以内</a>
        </div>
    </div>
    <span class='submit_btn'>&nbsp;&nbsp;提交&nbsp;></span>
</div>
{template "footer.html"}